package com.sihai.ehr.web.pojo;

import java.util.List;

import com.sihai.ehr.model.biz.ContractSign;
import com.sihai.ehr.model.biz.ContractSignRt;
import com.sihai.ehr.model.biz.ContractSignRtt;
import com.sihai.ehr.model.biz.ContractSignZz;
import com.sihai.ehr.model.biz.ContractVersion;
import com.sihai.ehr.model.biz.EmployeeinfoWork;

/**
 * author: wxn
 * since: 13-6-15 下午6:20
 */
public class ContractSignPojo2 {
    private EmployeeinfoWork work;
    private List<ContractSign> signs;
    private List<ContractSignZz> signZzs;
    private List<ContractSignRt> signRts;
    private List<ContractSignRtt> signRtts;
    private List<ContractVersion> versions;
    private int status; //0为未输入，输入后状态为1未审核, 开始审核为2审核中, 审核完成后是3未签， 签订后是4已签， 需续签时是5续签, 续签后历史合同状态为6已过期, 该合同状态为7已续签
    private int contractCount; //未签数

    public EmployeeinfoWork getWork() {
        return work;
    }

    public void setWork(EmployeeinfoWork work) {
        this.work = work;
    }

    public List<ContractSign> getSigns() {
        return signs;
    }

    public void setSigns(List<ContractSign> signs) {
        this.signs = signs;
    }

    public List<ContractSignZz> getSignZzs() {
        return signZzs;
    }

    public void setSignZzs(List<ContractSignZz> signZzs) {
        this.signZzs = signZzs;
    }
    
    public List<ContractSignRt> getSignRts() {
		return signRts;
	}
    
    public void setSignRts(List<ContractSignRt> signRts) {
		this.signRts = signRts;
	}
    
    public List<ContractSignRtt> getSignRtts() {
		return signRtts;
	}
    
    public void setSignRtts(List<ContractSignRtt> signRtts) {
		this.signRtts = signRtts;
	}

    public List<ContractVersion> getVersions() {
        return versions;
    }

    public void setVersions(List<ContractVersion> versions) {
        this.versions = versions;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getContractCount() {
        return contractCount;
    }

    public void setContractCount(int contractCount) {
        this.contractCount = contractCount;
    }

    public String getVersionNames() {
        if (versions != null && !versions.isEmpty()) {
            StringBuffer sb = new StringBuffer();
            for (ContractVersion v : versions) {
                sb.append(v.getContractName()).append(",");
            }
            sb.deleteCharAt(sb.length()-1);
            return sb.toString();
        }
        return null;
    }
}
